package cn.lingyangwl.agile.system.assembly;

import cn.lingyangwl.agile.auth.model.rqrs.CaptchaCheckReq;
import cn.lingyangwl.agile.msg.push.api.model.rqrs.CheckAuthUserCaptchaReq;
import cn.lingyangwl.agile.system.model.entity.AccessKey;
import cn.lingyangwl.agile.system.model.rqrs.accesskey.AccessKeyDetailsReq;
import cn.lingyangwl.agile.system.model.rqrs.accesskey.AccessKeySaveReq;
import cn.lingyangwl.agile.system.model.rqrs.accesskey.AccessKeyResp;
import org.mapstruct.Mapper;

/**
 * API访问密钥
 *
 * @author shenguangyang
 */
@Mapper(componentModel = "spring")
public interface AccessKeyAssembly {
  AccessKeyResp toAccessKeyResp(AccessKey source);
  
  AccessKey toAccessKey(AccessKeySaveReq source);

  CheckAuthUserCaptchaReq toCheckAuthUserVerifyMsgReq(AccessKeyDetailsReq source);

  CaptchaCheckReq toCaptchaCheckReq(AccessKeyDetailsReq source);
}
